import upload from '@/utils/upload'
import request from '@/utils/request'





// 获取
export function getSciById(id) {
	const routeUrl = '/system/sci/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取最新
export function getSciNew() {
	const routeUrl = '/system/sci/new' 
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取的上条信息
export function getSciPreById(id) {
	const routeUrl = '/system/sci/prev/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取的下条信息
export function getSciNextById(id) {
	const routeUrl = '/system/sci/next/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 查询科普列表
export function listSci(query) {
	return request({
		url: '/system/sci/list',
		method: 'get',
		params: query
	})
}




